package framework.util.generator;

/**
 * 用来存储数据库表结构的vo，辅助生成mysql的javabean
 * @author 吴宇亮 on 2019/6/26 22:02
 */
public class FieldForGeneratorMysql {

    private String isNullable;
    private String extra;
    private String columnName;
    private String columnRealName;
    private String columnType;
    private String columnRealType;
    private String columnKey;
    private String columnDefault;
    /** 静态变量字段名称，映射数据库的字段 **/
    private String propName;
    /** 字段对应的getter方法名 **/
    private String getterMethodName;
    /** 字段对应的setter方法名 **/
    private String setterMethodName;

    public static final String CHAR = "char";
    public static final String VARCHAR = "varchar";
    public static final String INT = "int";
    public static final String DECIMAL = "decimal";
    public static final String DATE = "date";

    public String getIsNullable() {
        return isNullable;
    }

    public void setIsNullable(String isNullable) {
        this.isNullable = isNullable;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnRealName() {
        return columnRealName;
    }

    public void setColumnRealName(String columnRealName) {
        this.columnRealName = columnRealName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getColumnRealType() {
        return columnRealType;
    }

    public void setColumnRealType(String columnRealType) {
        this.columnRealType = columnRealType;
    }

    public String getColumnKey() {
        return columnKey;
    }

    public void setColumnKey(String columnKey) {
        this.columnKey = columnKey;
    }

    public String getColumnDefault() {
        return columnDefault;
    }

    public void setColumnDefault(String columnDefault) {
        this.columnDefault = columnDefault;
    }

    public String getPropName() {
        return propName;
    }

    public void setPropName(String propName) {
        this.propName = propName;
    }

    public String getGetterMethodName() {
        return getterMethodName;
    }

    public void setGetterMethodName(String getterMethodName) {
        this.getterMethodName = getterMethodName;
    }

    public String getSetterMethodName() {
        return setterMethodName;
    }

    public void setSetterMethodName(String setterMethodName) {
        this.setterMethodName = setterMethodName;
    }
}
